package com.yiyahui.project.erp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 市场回访对象 yiya_market_visit
 * 
 * @author yiyahui
 * @date 2020-05-26
 */

@ApiModel(value="市场回访对象")
public class YiyaMarketVisit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 市场建档id */
    @ApiModelProperty(value="市场建档id")
    @Excel(name = "市场建档id")
    private Long marketReservationId;

    /** 回访结果 */
    @ApiModelProperty(value="回访结果")
    @Excel(name = "回访结果")
    private String result;

    /** 回访时间 */
    @ApiModelProperty(value="回访时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "回访时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date visitTime;

    /** 下次回访回访时间 */
    @ApiModelProperty(value="下次回访回访时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次回访回访时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextVisitTime;

    /** 跟进人 */
    @ApiModelProperty(value="跟进人")
    @Excel(name = "跟进人")
    private String followPerson;

    /** 跟踪状态 */
    @ApiModelProperty(value="跟踪状态")
    @Excel(name = "跟踪状态")
    private String followStatus;

    /** 是否有效 1.有效回访 2.无效回访 */
    @ApiModelProperty(value="是否有效 1.有效回访 2.无效回访")
    @Excel(name = "是否有效 1.有效回访 2.无效回访")
    private Integer isEffectivity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMarketReservationId(Long marketReservationId) 
    {
        this.marketReservationId = marketReservationId;
    }

    public Long getMarketReservationId() 
    {
        return marketReservationId;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setVisitTime(Date visitTime) 
    {
        this.visitTime = visitTime;
    }

    public Date getVisitTime() 
    {
        return visitTime;
    }
    public void setNextVisitTime(Date nextVisitTime) 
    {
        this.nextVisitTime = nextVisitTime;
    }

    public Date getNextVisitTime() 
    {
        return nextVisitTime;
    }
    public void setFollowPerson(String followPerson) 
    {
        this.followPerson = followPerson;
    }

    public String getFollowPerson() 
    {
        return followPerson;
    }
    public void setFollowStatus(String followStatus) 
    {
        this.followStatus = followStatus;
    }

    public String getFollowStatus() 
    {
        return followStatus;
    }
    public void setIsEffectivity(Integer isEffectivity) 
    {
        this.isEffectivity = isEffectivity;
    }

    public Integer getIsEffectivity() 
    {
        return isEffectivity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("marketReservationId", getMarketReservationId())
            .append("result", getResult())
            .append("visitTime", getVisitTime())
            .append("nextVisitTime", getNextVisitTime())
            .append("followPerson", getFollowPerson())
            .append("followStatus", getFollowStatus())
            .append("isEffectivity", getIsEffectivity())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
